package com.aya;

import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ImportResource;

@ImportResource("dubbo-provider.xml")
@SpringBootApplication
public class SpringMain {
    public static void main(String[] args) {
        SpringApplicationBuilder builder = new SpringApplicationBuilder(SpringMain.class);
        builder.web(WebApplicationType.SERVLET);
        ConfigurableApplicationContext context = builder.run(args);


    }
}
